/*
 * Copyright (C) 2017 Pingan, Inc. All Rights Reserved.
 */

package com.pingan.haofang.searchcloud.web.users.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 用户会话
 *
 * @author zhangbi617
 * @date 16/05/2017
 */
@ApiModel(description = "用户会话对象")
public class VisitorVo {
    /**
     * 用户ID
     */
    @ApiModelProperty("用户ID")
    private long userId;

    /**
     * 用户名
     */
    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("角色Id")
    private Integer roleId;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    @Override
    public String toString() {
        return "VisitorVo{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", roleId=" + roleId +
                '}';
    }
}
